package org.cbyyx.tc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.cbyyx.tc.model.dto.userRequest.UserLoginRequest;
import org.cbyyx.tc.model.dto.userRequest.UserRegisterRequest;
import org.cbyyx.tc.model.dto.userRequest.UserUpdateRequest;
import org.cbyyx.tc.model.entity.User;
import org.cbyyx.tc.model.vo.userResponse.UserDetailVO;
import org.cbyyx.tc.model.vo.userResponse.UserVO;

import javax.servlet.http.HttpSession;

/**
* @author cbyyx
* @description 针对表【users】的数据库操作Service
* @createDate 2025-04-21 15:35:04
*/
public interface UserService extends IService<User> {

    UserVO userLogin(UserLoginRequest createRequest, HttpSession session);

    Boolean userRegister(UserRegisterRequest registerRequest);

    UserVO getCurrentUser(HttpSession session);

    Boolean updateUser(UserUpdateRequest updateRequest);

    UserDetailVO getUser(Long id);

    Boolean addBalance(Long amount);
}
